#pragma once

#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

#define ROW 9
#define COL 9

#define ROWS ROW+2
#define COLS COL+2

#define MINENUM 10

void menu();
void game();
void intiboard(char arr[ROWS][COLS], int rows, int cols, char set);
void printboard(char arr[ROWS][COLS], int row, int col, char* set);
void setmine(char arr[ROWS][COLS], int row, int col, int num);
void get_mine_num(char mine[ROWS][COLS], char search[ROWS][COLS], int x, int y, int* count);
void flag(char search[ROWS][COLS], int row, int col, int* mineoff, char set0, char set);
void sweepmine(char mine[ROWS][COLS], char search[ROWS][COLS], int row, int col);